package com.zbb.online_exam.entity;

/**
 * @author zbbstart
 * @date 2021/2/10 - 10:03
 */

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;

/**
 * 这个类是师生关系表
 */
@Data
@TableName("relation")
@ApiModel(value = "师生关系对象", description = "封装了每个学生编号对应的老师编号的对象")
public class Relation implements Serializable {
    private static final long serialVersionUID = -8374310144792345284L;
    @TableId(value = "id",type = IdType.AUTO)
    @ApiModelProperty(name = "id", value = "师生关系表自增主键", example = "1")
    private Integer id;

    @TableField("studentNo")
    @ApiModelProperty(name = "id", value = "学生编号", example = "3")
    private Integer studentNo;

    @TableField("teacherNo")
    @ApiModelProperty(name = "id", value = "老师编号", example = "9")
    private Integer teacherNo;
}
